﻿@using LY.Business.ServiceImpl
@using LY.Interface
@{ 
    ViewBag.ActionName = this.ViewContext.RouteData.Values["action"].ToString().ToLower();
    //菜单类型
    var type = Request.QueryString["type"] == null ? "" : Request.QueryString["type"].ToString();
    var loginUserInfo = System.Web.HttpContext.Current.Session["CurrentUser"] as LY.Entity.U_Member;
    var loginName = "";
    var module = "";
    var headImage = "";//头像
    var realName = "";//实名认证
    var mobilePhone = "";//手机验证
    var email = "";//邮箱验证
    var password = "";//密码验证
    if (loginUserInfo != null)
    {
        loginName = ((LY.Entity.U_Member)loginUserInfo).Nickname;
        headImage = ((LY.Entity.U_Member)loginUserInfo).HeadImage == "" ? "/Content/Images/user1.gif" : ((LY.Entity.U_Member)loginUserInfo).HeadImage;

        //实名认证
        var a = " <div class=\"u-security\" href=\"javascript:;\"   data-msg=\"您已开通盛付通。<a   href='../Account/PersonalCertification'>查看详情</a>\"><img src=\"/Content/Images/user1.png\" /></div>";
        var b = " <div class=\"u-security\" href=\"javascript:;\"  data-msg=\"您还未开通盛付通。<a  href='../Account/PersonalCertification'>立刻开通</a>\"><img src=\"/Content/Images/user1-1.png\" /></div>";
        realName = ((LY.Entity.U_Member)loginUserInfo).IsIDValidate == false ? b : a;

        //认证手机
        a = " <div class=\"u-security\" href=\"javascript:;\"   data-msg=\"您已绑定手机" + ((LY.Entity.U_Member)loginUserInfo).Mobilenumber.Substring(0, 3) + "****" + ((LY.Entity.U_Member)loginUserInfo).Mobilenumber.Substring(7, 4) + "。<a target='_self' href='/Account/PhoneCertification'>更改</a>\"><img src=\"/Content/Images/user2.png\" /></div>";
        b = " <div class=\"u-security\" href=\"javascript:;\"  data-msg=\"您还没认证手机。<a  href='/Account/PhoneCertification'>立刻认证</a>\"><img src=\"/Content/Images/user2-2.png\" /></div>";

        mobilePhone = ((LY.Entity.U_Member)loginUserInfo).IsPhoneValidate == false ? b : a;

        //电子邮件
        a = " <div class=\"u-security\" href=\"javascript:;\"   data-msg=\"" + ((LY.Entity.U_Member)loginUserInfo).Email + "。<a target='_self' href='/Account/EmailCertification'>更改</a>\"><img src=\"/Content/Images/user3.png\" /></div>";
        b = " <div class=\"u-security\" href=\"javascript:;\"  data-msg=\"您还没认证邮箱。<a  href='/Account/EmailCertification'>立刻认证</a>\"><img src=\"/Content/Images/user3-3.png\" /></div>";
        email = ((LY.Entity.U_Member)loginUserInfo).IsEmailValidate == false ? b : a;

        //支付密码
        a = " <div class=\"u-security\" href=\"javascript:;\"  data-msg=\"您已设置支付密码。<a target='_self' href='javascript:void(0)' onclick='QuShengFuTong()'>修改</a>\"><img src=\"/Content/Images/user4.png\" /></div>";
        b = " <div class=\"u-security\" href=\"javascript:;\"  data-msg=\"您还没有开通盛付通。<a  href='../Account/PersonalCertification'>立即开通</a>\"><img src=\"/Content/Images/user4-4.png\" /></div>";
        password = ((LY.Entity.U_Member)loginUserInfo).IsIDValidate == false ? b : a;



    } 
    <style>
        .u-security .arrow-up {
            margin: 0;
            padding: 0;
            width: 200px;
            height: 40px;
            background-color: white;
            position: absolute;
            border: #e4e4e4 1px solid;
            margin-left: 0;
            font-size: 12px;
            line-height: 40px;
        }


        .u-security a {
            color: #005ea7;
        }

            .u-security a:hover {
                color: #C81623;
            }
    </style>
    <script>
        $(function () {
            $(".text li").each(function (index) {
                $("a[href*='@ViewBag.ActionName']").addClass('active');
            });

            $(".u-security").hover(
                function () {
                    var msg = $(this).attr("data-msg");
                    var one = $('<div class=arrow-up>' + msg + '</div>'); //创建一个子DIV
                    one.attr('id', 'one'); //给子DIV设置ID 
                    one.appendTo($(this));
                }, function () {
                    $(this).find("div:last").remove();
                }
            );

            $(".sign").click(function () {
                $.dialog({
                    id: 'sign',
                    lock: true,
                    fixed: true,
                    esc: false,
                    min: false,
                    max: false,
                    resize: false,
                    background: '#000', /* 背景色 */
                    opacity: 0.5,       /* 透明度 */
                    width: 750,
                    height: 520,
                    content: 'url:/UserDetails/Sign',
                    title: '签到日历'
                });
            })
        })
    </script>
    
}

<div class="leftContrent">
    <div class="a_tit">
        <a href="@Url.Action("PersonSet", "Account")">
            <img src="@headImage" class="u-img"/></a>

        <div class="u-name">Hi~，@loginName</div>
        <div class="line10"></div>
        <div class="u-setting">
            <img   src="~/Content/assets/images/icons/sign.jpg"   style="cursor: pointer; font-size: 15px; color: blue;" class="sign" alt="点击签到"/> 
        </div>

    </div>

    <div class="box">
        <h2 class="n-project2">我的资产</h2>
        <ul class="text">
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Account/AccountInfo">账户总览</a></li>
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Account/Recharge">充值</a></li>
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Account/Withdrawal">提现</a></li>
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Account/FundsList">交易记录</a></li>
        </ul>
    </div>
    <div class="box">
        <h2 class="n-project">我的理财</h2>
        <ul class="text">
            @*<li><a href="#">我的预约</a></li>*@
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Claims/MyInvest">我的投资</a></li>
        </ul>
    </div>
    <div class="box">
        <h2 class="n-project">我的众筹</h2>
        <ul class="text">
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["zcurl"]/UserProject/myproject">我发起的项目</a></li>
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["zcurl"]/UserProject/secondproject">我支持的项目</a></li>
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["zcurl"]/UserProject/focusproject">我关注的项目</a></li>
        </ul>
    </div>
    @*    <div class="box">
        <h2 class="n-project">我的货基</h2>
        <ul class="text">
            <li><a href="#">我的投资</a></li> 
        </ul>
    </div>
    <div class="box">
        <h2 class="n-project2">我的私房钱</h2>
        <ul class="text"> 
        </ul>
    </div>*@

    <div class="box">
        <h2 class="n-project4">消息中心</h2>
        <ul class="text">
            @*       <li><a href="/User/authentication">系统消息</a></li>*@
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/UserDetails/authentication">我的消息</a></li>
        </ul>
    </div>
    <div class="box">
        <h2 class="n-project1">个人中心</h2>
        <ul class="text">
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Account/index">个人设置</a></li>
            @*   <li><a href="/Score/IntegralRecord">关注的投资人</a></li>
            <li><a href="/Score/IntegralExchangeRecord">我的粉丝</a></li>
            <li><a href="/Account/PwdSet">投资人认证</a></li>*@
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Account/useraddress">收货地址</a></li>
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/UserDetails/myscore">我的积分</a></li>
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/UserDetails/mylottery">抽奖记录</a></li>
            <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/UserDetails/referralslink">我的推广链接</a></li>
        </ul>
    </div>
</div>
